home *** CD-ROM | disk | FTP | other *** search
- regc(0, "TFACTOR")
-
- pshader("
-
- ps_1_4
-
- texld r0, t0_dw.xyw ;spot UV
- texld r1, t1_dw.xyw ;spoz Z
- texld r2, t2 ;RGB=terrain colormap
- texld r3, t3 ;details
- texld r4, t4 ;terrain layers
- texld r5, t5 ;detailsmasks
-
-
-
-
-
- dp3 r3.rgb, r3, r4 ;Mul details with masks = DETAILS
- +mul r0.a, r0.b, r1.b
-
- mul r2.rgb, r2, c0
- +mul r2.a, r0.a, r3.b
-
- mul r0.rgb, r2, r2.a
- +mov r0.a, c0.a
-
-
- dp3 r3.rgb, r3, r5
- +mul r0.a, r0.b, r1.b
-
- lrp r2.rgb, r5.a, r4, r2
- +mul r3.a, r0.a, r3.b
-
- mul r0, r2, r3.a
-
- mul r0, r0, c0
-
- ")
-
-